<!DOCTYPE HTML>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="renderer" content="webkit|ie-comp|ie-stand">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
		<meta http-equiv="Cache-Control" content="no-siteapp" />
		<!--[if lt IE 9]>
    <script type="text/javascript" src="../../lib/html5shiv.js?rev=@@hash"></script>
    <script type="text/javascript" src="../../lib/respond.min.js?rev=@@hash"></script>
    <![endif]-->
		<link rel="stylesheet" type="text/css" href="../../static/h-ui/css/H-ui.min.css" />
		<link rel="stylesheet" type="text/css" href="../../static/h-ui.admin/css/H-ui.admin.css" />
		<link rel="stylesheet" type="text/css" href="../../lib/Hui-iconfont/1.0.8/iconfont.css" />
		<!--引入分页-->
		<link rel="stylesheet" href="../../lib/pagination/pagination.css">
		<link rel="stylesheet" type="text/css" href="../../lib/Validform/5.3.2/style.css" />
		<link rel="stylesheet" type="text/css" href="../../static/h-ui.admin/skin/default/skin.css" id="skin" />
		<link rel="stylesheet" type="text/css" href="../../static/h-ui.admin/css/style.css" />
		<link rel="stylesheet" type="text/css" href="../../ht-css/Project.css" />
		<link rel="stylesheet" type="text/css" href="../../ht-css/jedate.css" />
		<!--[if IE 6]>
    <script type="text/javascript" src="../../lib/DD_belatedPNG_0.0.8a-min.js" ></script>
    <script>DD_belatedPNG.fix('*');</script>
    <![endif]-->
		<link rel="stylesheet" type="text/css" href="../../ht-css/style-q.css" />
	</head>
	<body data-id="38">
		<nav class="breadcrumb">商品管理 <span class="c-gray en">&gt;</span> 数据源设定 <span class="c-gray en">&gt;</span>
			<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="#" onclick="reload()" title="刷新"><i class="Hui-iconfont">&#xe68f;</i></a>
			<div></div>
		</nav>
		<article class="page-container">
			<div id="tab_topnav" class="HuiTab">
				<div class="tabBar clearfix">
					<span>分类管理</span>
					<!--<span>采销管理</span>-->
					<!--<span>属性值管理</span>-->
					<span>场景模块管理</span>
					<span>区域-城市</span>
					<span>发货仓-发货公司-主省份</span>
				</div>
				<!--分类属性-->
				<div class="tabCon bk-gray bg-1 pd-20">
					<div class="va-m lh-20 f-16 pb-15">
						<strong>商品品类</strong>
						<!--<a href="##" class="f-r mr-10 btn btn-secondary radius size-S">导出分类表</a>-->
						<!--<a href="##" onclick="goToLog('操作日志','oplog.html')" class="f-r mr-10 btn radius size-S c-black powerButton 465">操作日志</a>-->
					</div>
					<div class="line"></div>
					<div class="clearfix pt-20 pb-20">
						<div class="class-wp27 f-l" style="width: 20%">
							<div class="pd-5"><strong>一级品类名称</strong></div>
							<ul class="bk-gray pt-5" id="classSet1" style="height: 373px">

							</ul>
							<!--<a onclick="firstClassAdd('','#firstClassInp1',1)" class="size-L btn btn-primary"><i class="Hui-iconfont">&#xe600;</i> 添加</a>-->
						</div>
						<div class="class-wp27 f-l" style="display: none;width: 20%" id="classDiv2">
							<div class="pd-5"><strong>二级品类名称</strong></div>
							<ul class="bk-gray pt-5" id="classSet2">

							</ul>
						</div>
						<div class="class-wp27 f-l" style="display: none;width: 20%" id="classDiv3">
							<div class="pb-5"><strong>三级品类名称</strong></div>
							<ul class="bk-gray pt-5" id="classSet3">

							</ul>
						</div>
						<div class="class-wp27 f-l" style="display: none;width: 20%" id="classDiv4">
							<div class="pb-5"><strong>四级品类名称</strong></div>
							<ul class="bk-gray pt-5" id="classSet4">

							</ul>
						</div>
					</div>
				</div>

				<!--采销管理-->
				<!--<div class="tabCon bk-gray bg-1 pd-20">
					<div class="lh-30">
						<form id="cxManage">
							<table class="table-hover table_li ml-10 mb-10 table">
								<thead class="text-l">
									<tr>
										<td class="col-3-2" colspan="2">
											<div class="row ml-10">
												<label class="form-label f-l pt-5">所属分类：</label>
												<span class="size-M radius col-xs-8 f-l" style="width:15%">
                                       <div style="position: relative;z-index: 900;">
                                            <input type="text" autocomplete="off" class="input-text radius" name="classP1" id="classP1" placeholder="请选择一级分类" oninput="goods_listCategoryP(1)" >
                                            <ul class="relation radius guanlian" id="classUlP1">
                                            </ul>
                                        </div>
                                    </span>
												<span class="f-l pl-10 pr-10 pt-5">~</span>
												<span class="size-M radius col-xs-8 f-l" style="width:15%">
                                       <div style="position: relative;z-index: 900;">
                                            <input type="text" autocomplete="off" class="input-text radius" name="classP2" id="classP2" placeholder="请选择二级分类" >
                                            <ul class="relation radius guanlian" id="classUlP2">

                                            </ul>
                                        </div>
                                    </span>
												<span class="f-l pl-10 pr-10 pt-5">~</span>
												<span class="size-M radius col-xs-8 f-l" style="width:15%">
                                       <div style="position: relative;z-index: 900;">
                                            <input type="text" autocomplete="off" class="input-text radius" name="classP3" id="classP3" placeholder="请选择三级分类"  >
                                            <ul class="relation radius guanlian" id="classUlP3">

                                            </ul>
                                        </div>
                                    </span>
											</div>
										</td>
										<td class="col-3-1">
											<div class="row ml-10">
												<label class="form-label f-l pt-5">配置时间：</label>
												<div class="f-l">
			                                        <input class="workinput wicon input-text radius" id="timemin" type="text" placeholder="起始时间" style="width:115px;" readonly>
			                                        ~
			                                        <input class="workinput wicon input-text radius" id="timemax" type="text" placeholder="结束时间" style="width:115px;" readonly>
		                                    	</div>
											</div>
										</td>
									</tr>
									<tr>
										<td class="col-3-1">
											<div class="row ml-10">
												<label class="form-label f-l pt-5">三级分类：</label>
												<div class="formControls col-xs-8 col-sm-9">
													<input type="text" class="input-text radius" name="code_name" id="code_name" placeholder="输入编码/名称关键字" datatype="/^[a-zA-Z0-9\u4e00-\u9fa5]{0,15}$/" errormsg="格式错误，请重新输入" ignore="ignore">
												</div>
												<span class="Validform_checktip"></span>
											</div>
										</td>
										<td class="col-3-1">
											<div class="row ml-10">
												<label class="form-label f-l pt-5">采购负责人：</label>
												<div class="formControls col-xs-8 col-sm-9">
													<input type="text" class="input-text radius" name="purchase_man" id="purchase_man" placeholder="输入采购负责人工号/姓名关键字" datatype="/^[a-zA-Z\u4e00-\u9fa5]{0,}$/|/^[0-9]{0,}$/" errormsg="格式错误，请重新输入" ignore="ignore">
												</div>
												<span class="Validform_checktip"></span>
											</div>
										</td>
										<td class="col-3-1">
											<div class="row ml-10">
												<label class="form-label f-l pt-5">运营负责人：</label>
												<div class="formControls col-xs-8 col-sm-9">
													<input type="text" class="input-text radius" name="operate_man" id="operate_man" placeholder="输入销售负责人工号/姓名关键字" datatype="/^[a-zA-Z\u4e00-\u9fa5]{0,}$/|/^[0-9]{0,}$/" errormsg="格式错误，请重新输入" ignore="ignore">
												</div>
												<span class="Validform_checktip"></span>
											</div>
										</td>
									</tr>
								</thead>
							</table>
							<div class="text-c pb-20 pt-10 powerButton 403"><input id="btn" type="submit" class="btn btn-secondary radius size-S" value="查&nbsp;&nbsp;询"><input name="" onclick="resetDiv()" type="reset" class="btn radius size-S ml-10 powerButton 403" value="重&nbsp;&nbsp;置"></div>
						</form>
					</div>
					<table class="table table-border table-bg table-hover table-sort mt-10" id="cxdatatable">
						<thead>
							<tr class="text-c">
								<th class="col-5-2">三级分类名称</th>
								<th class="col-5-1">采购负责人</th>
								<th class="col-5-1">运营负责人</th>
								<th class="col-5-1">最新配置时间</th>
							</tr>
						</thead>
						<tbody class="shun">
							&lt;!&ndash;<tr>
								<td>1101001 钢管</td>
								<td>采购部 张三
									<a href="##" class="Hui-iconfont f-r icon-edit"></a>
								</td>
								<td>销售部 王二
									<a href="##" class="Hui-iconfont f-r icon-edit"></a>
								</td>
								<td>
									<div>2017-09-09</div>
									<div>13：45：45</div>
								</td>
							</tr>&ndash;&gt;
						</tbody>
						
					</table>
					<div class="dataTables_wrapper goods_fanye clearfix">
						<div class="f-r pageturning M-box4"></div>
					</div>
				</div>-->

				<!--属性值管理-->
				<!--<div class="tabCon bk-gray bg-1 pd-20">
					<div class="va-m lh-20 f-16 pb-15">
						<strong>属性值管理</strong>
						&lt;!&ndash;<a href="##" class="f-r mr-10 btn btn-secondary radius size-S">导出属性值</a>&ndash;&gt;
					</div>
					<div class="line"></div>
					<div class="lh-30 pd-10">
						<table class="table-hover table_li ml-10 mb-10 table">
							<thead class="text-l">
								<tr>
									<td colspan="3" class="col-1-1">
										<div class="row ml-10">
											<label class="form-label f-l pt-5">商品分类：</label>
											<span class="size-M radius col-xs-8 f-l" style="width:15%">
                                       <div style="position: relative;z-index: 900;">
                                            <input type="text" autocomplete="off" class="input-text radius" name="class1" placeholder="请选择一级分类" oninput="goods_listCategory(1)" id="class1" datatype="/^[a-zA-Z0-9\u4e00-\u9fa5]{0,20}$/" errormsg="格式错误，请重新输入" ignore="ignore">
                                            <ul class="relation radius guanlian" id="classUl1">

                                            </ul>
                                        </div>
                                        <span class="Validform_checktip"></span>
											</span>
											<span class="f-l pl-10 pr-10 pt-5">~</span>
											<span class="size-M radius col-xs-8 f-l" style="width:15%">
                                        <div style="position: relative;z-index: 900;">
                                            <input type="text" autocomplete="off" class="input-text radius"  name="class2"  placeholder="请选择二级分类" id="class2" datatype="/^[a-zA-Z0-9\u4e00-\u9fa5]{0,20}$/" errormsg="格式错误，请重新输入" ignore="ignore">
                                            <ul class="relation radius guanlian" id="classUl2">
                                            </ul>
                                        </div>
                                         <span class="Validform_checktip"></span>
											</span>
											<span class="f-l pl-10 pr-10 pt-5">~</span>
											<span class="size-M radius col-xs-8" style="width:15%">
                                        <div style="position: relative;z-index: 900;">
                                            <input type="text" autocomplete="off" class="input-text radius"  name="class3" placeholder="请选择三级分类" id="class3" datatype="/^[a-zA-Z0-9\u4e00-\u9fa5]{0,20}$/" errormsg="格式错误，请重新输入" ignore="ignore">
                                            <ul class="relation radius guanlian" id="classUl3">
                                            </ul>
                                        </div>
                                        <span class="Validform_checktip"></span>
											</span>
										</div>
									</td>
								</tr>
								<tr>
									<td class="col-1-1">
										<div class="row ml-10">
											<label class="form-label f-l pt-5">属性分类：</label>
											<span class="select-box size-M radius col-xs-8 f-l" style="width:20%">
                                    <select class="select"  id="attribute_type"  name="attribute_type" size="1" onclick="goods_Attribute()" >
                                        <option value="0" >销售属性</option>
                                        <option value="1" selected>商品描述属性</option>
                                    </select>
                                </span>
										</div>
									</td>
								</tr>
							</thead>
						</table>

						<div class="clearfix pt-20 pb-20">
							<div class="class-wp27 class-sx f-l">
								<div class="pd-5"><strong>属性项</strong></div>
								<ul class="bk-gray pt-5" id="property">
								</ul>
								<div class="powerButton 405">
									<a href="##" onclick="firstPropertyAdd1('','#goodsPropertyInp1')" class="size-L btn btn-primary"><i class="Hui-iconfont">&#xe600;</i> 添加</a>
								</div>
							</div>
							<div class="class-wp27 f-l">
								<div class="pd-5"><strong>属性值</strong></div>
								<ul class="bk-gray pt-5" id="propertyValue">
								</ul>
							</div>
						</div>

					</div>
				</div>-->

				<!--场景标签管理-->
				<div class="tabCon bk-gray bg-1 pd-20">
					<div class="va-m lh-20 f-16 pb-15">
						<strong>场景模块</strong>
						<!--<a href="##" class="f-r mr-10 btn btn-secondary radius size-S">导出分类表</a>-->
					</div>
					<div class="line"></div>
					<div class="clearfix pt-20 pb-20">
						<div class="class-wp27 f-l">
							<div class="pd-5"><strong>一级场景名称</strong></div>
							<ul class="bk-gray pt-5" id="lableSet1" style="height: 373px;">

							</ul>
							<!--<div class="powerButton 408">
								<a href="##" class="size-L btn btn-primary" onclick="addLabelInp('','#goodsLableInp1',1)"><i class="Hui-iconfont">&#xe600;</i> 添加</a>
							</div>-->
						</div>
						<div class="class-wp27 f-l">
							<div class="pd-5"><strong>二级场景名称</strong></div>
							<ul class="bk-gray pt-5" id="lableSet2">

							</ul>
						</div>
					</div>
				</div>
				<!--区域--城市-->
				<div class="tabCon bk-gray bg-1 pd-20">
					<div class="va-m lh-20 f-16 pb-15">
						<strong>区域城市</strong>
					</div>
					<div class="line"></div>
					<div class="lh-30 pd-10">
						<table class="mt-20 table table-border table-bordered table-hover" id="warehouseTable">
							<thead class="text-c">
								<th style="width: 110px;">区域名称</th>
								<th>覆盖范围</th>
							</thead>
							<tbody id="allHouse">
		
							</tbody>
						</table>
					</div>
				</div>
				<!-- 发货仓-发货公司-主省份 -->
				<div class="tabCon bk-gray bg-1 pd-20">
					<div class="va-m lh-20 f-16 pb-15">
						<strong>发货仓-发货公司-主省份</strong>
					</div>
					<div class="line"></div>
					<div class="lh-30 pd-10">
						<table class="mt-20 table table-border table-bordered table-hover" id="delivery-warehousecitybox">
							<thead class="text-c">
								<th style="width: 110px;">仓名称</th>
								<th>公司名称</th>
								<th>省份</th>
							</thead>
							<tbody id="delivery-warehousecity">
		
							</tbody>
						</table>
					</div>
				</div>
			</div>

		</article>
		<!--_footer 作为公共模版分离出去-->
		<script type="text/javascript" src="../../lib/jquery/1.9.1/jquery.min.js?rev=@@hash"></script>
		<script type="text/javascript" src="../../lib/layer/2.4/layer.js?rev=@@hash"></script>
		<script type="text/javascript" src="../../static/h-ui/js/H-ui.min.js?rev=@@hash"></script>
		<script type="text/javascript" src="../../static/h-ui.admin/js/H-ui.admin.js?rev=@@hash"></script>
		<!--/_footer 作为公共模版分离出去-->
		<!--请在下方写此页面业务相关的脚本-->
		<script type="text/javascript" src="../../lib/jquery.jedate.min.js?rev=@@hash"></script>
		<script type="text/javascript" src="../../lib/My97DatePicker/4.8/WdatePicker.js?rev=@@hash"></script>
		<!--表单验证-->
		<script type="text/javascript" src="../../lib/jquery.validation/1.14.0/jquery.validate.js?rev=@@hash"></script>
		<script type="text/javascript" src="../../lib/jquery.validation/1.14.0/validate-methods.js?rev=@@hash"></script>
		<script type="text/javascript" src="../../lib/jquery.validation/1.14.0/messages_zh.js?rev=@@hash"></script>
		<script type="text/javascript" src="../../lib/Validform/5.3.2/Validform_v5.3.2_min.js?rev=@@hash"></script>
		<script src="../../lib/pagination/jquery.pagination.js?rev=@@hash"></script>
		<script type="text/javascript" src="../../lib/datatables/1.10.0/jquery.dataTables.min.js?rev=@@hash"></script>
		<script type="text/javascript" src="../../lib/laypage/1.2/laypage.js?rev=@@hash"></script>
		<script src="../../ht-js/public.js?rev=@@hash"></script>
<!--验证token-->
<script src="../../ht-js/verifyToken.js?rev=@@hash"></script>
		<script src="../../ht-js/Project.js?rev=@@hash"></script>
		<script type="text/javascript" src="../../ht-js/frame/doT.min.js?rev=@@hash"></script>
		<!--分类设置-->
		<script src="../../ht-js/goods/goods-classSet.js?rev=@@hash"></script>
		<!--采销设置-->
		<script src="../../ht-js/goods/goods-cxSet.js?rev=@@hash"></script>
		<!--属性设置-->
		<script src="../../ht-js/goods/goods-attrSet.js?rev=@@hash"></script>
		<!--场景标签设置-->
		<script src="../../ht-js/goods/goods-lableSet.js?rev=@@hash"></script>
		<!--区域城市设置-->
		<script src="../../ht-js/goods/regional-city.js?rev=@@hash"></script>
		<!--发货仓-发货公司-主省份设置-->
		<!-- <script src="../../ht-js/goods/delivery-warehousecity.js?rev=@@hash"></script> -->
		<script type="text/javascript" src="../../ht-js/power.js?rev=@@hash"></script>

		<!--&lt;!&ndash;品牌设置&ndash;&gt;
		<script src="../../ht-js/goods/goods-brandSet.js?rev=@@hash"></script>-->
		<script>
			$(function() {
				$("#brandSearchForm").Validform({
					tiptype: 2,
					callback: function(form) {
						brand_list(1, 50, $("#brandName").val());
						return false;
					}
				});
				$("#cxManage").Validform({
					tiptype: 2,
					callback: function(form) {
						cx_list();
						return false;
					}
				});
			})
			function timeSet(startEl,endEl,timeFormat){
		        /*startEl=>开始时间Input的id，endEl=>结束时间Input的id，时间格式（YYYY-MM-DD hh:mm:ss  YYYY年MM月DD日 hh:mm:ss）*/
		        /*时间设置*/
		        var start = {
		            format: timeFormat,
		            maxDate: $.nowDate(),
		            okfun: function(obj){
		                end.minDate = obj.val; //开始日选好后，重置结束日的最小日期
		            }
		        };
		        var end = {
		            format: timeFormat,
		            maxDate: $.nowDate(),
		            okfun: function(obj){
		                start.maxDate = obj.val; //将结束日的初始值设定为开始日的最大日期
		            }
		        };
		        $.jeDate(startEl,start);
		        $.jeDate(endEl,end);
		    }
		    timeSet("#timemin","#timemax","YYYY-MM-DD hh:mm:ss");
		    
			jQuery.Huitab = function(tabBar, tabCon, class_name, tabEvent, i) {
				var $tab_menu = $(tabBar);
				// 初始化操作
				$tab_menu.removeClass(class_name);
				$(tabBar).eq(i).addClass(class_name);
				$(tabCon).hide();
				$(tabCon).eq(i).show();
				$tab_menu.bind(tabEvent, function() {
					$tab_menu.removeClass(class_name);
					$(this).addClass(class_name);
					var index = $tab_menu.index(this);
					$(tabCon).hide();
					$(tabCon).eq(index).show();
				});
			}

			$(function() {
				$.Huitab("#tab_topnav .tabBar span", "#tab_topnav .tabCon", "current", "click", "0")
			});
			// #tab_demo 父级id
			// #tab_demo .tabBar span 控制条
			// #tab_demo .tabCon 内容区
			// click 事件 点击切换，可以换成mousemove 移动鼠标切换
			// 1	默认第2个tab为当前状态（从0开始）
			// 刷新
			function reload() {
				//location.replace(location.href);
				window.location.reload(location.href);
			}
		</script>
	</body>

</html>